package com.example.demo.domain;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName COMMENT_INFO
 */
@Data
public class CommentInfo implements Serializable {
    /**
     * 
     */
    private Object spotId;

    /**
     * 
     */
    private String evaluation;

    /**
     * 
     */
    private String evaluationGrade;

    /**
     * 
     */
    private String evaluationTime;

    /**
     * 
     */
    private Object evaluationId;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CommentInfo other = (CommentInfo) that;
        return (this.getSpotId() == null ? other.getSpotId() == null : this.getSpotId().equals(other.getSpotId()))
            && (this.getEvaluation() == null ? other.getEvaluation() == null : this.getEvaluation().equals(other.getEvaluation()))
            && (this.getEvaluationGrade() == null ? other.getEvaluationGrade() == null : this.getEvaluationGrade().equals(other.getEvaluationGrade()))
            && (this.getEvaluationTime() == null ? other.getEvaluationTime() == null : this.getEvaluationTime().equals(other.getEvaluationTime()))
            && (this.getEvaluationId() == null ? other.getEvaluationId() == null : this.getEvaluationId().equals(other.getEvaluationId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSpotId() == null) ? 0 : getSpotId().hashCode());
        result = prime * result + ((getEvaluation() == null) ? 0 : getEvaluation().hashCode());
        result = prime * result + ((getEvaluationGrade() == null) ? 0 : getEvaluationGrade().hashCode());
        result = prime * result + ((getEvaluationTime() == null) ? 0 : getEvaluationTime().hashCode());
        result = prime * result + ((getEvaluationId() == null) ? 0 : getEvaluationId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", spotId=").append(spotId);
        sb.append(", evaluation=").append(evaluation);
        sb.append(", evaluationGrade=").append(evaluationGrade);
        sb.append(", evaluationTime=").append(evaluationTime);
        sb.append(", evaluationId=").append(evaluationId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}